import request from '@/utils/request'

// 查询品牌门店列表列表
export function listListing(query) {
  return request({
    url: '/check/listing/list',
    method: 'get',
    params: query
  })
}

// 查询品牌门店列表详细
export function getListing(storeListingId) {
  return request({
    url: '/check/listing/' + storeListingId,
    method: 'get'
  })
}

// 新增品牌门店列表
export function addListing(data) {
  return request({
    url: '/check/listing',
    method: 'post',
    data: data
  })
}

// 修改品牌门店列表
export function updateListing(data) {
  return request({
    url: '/check/listing',
    method: 'put',
    data: data
  })
}

// 删除品牌门店列表
export function delListing(storeListingId) {
  return request({
    url: '/check/listing/' + storeListingId,
    method: 'delete'
  })
}
